import request from '@/utils/request'

// 查询抄房间仪表列表
export function listCopyroom(query) {
  return request({
    url: '/payfee/copyroom/list',
    method: 'get',
    params: query
  })
}

// 查询抄房间仪表详细
export function getCopyroom(copyId) {
  return request({
    url: '/payfee/copyroom/' + copyId,
    method: 'get'
  })
}

// 新增抄房间仪表
export function addCopyroom(data) {
  return request({
    url: '/payfee/copyroom',
    method: 'post',
    data: data
  })
}

// 修改抄房间仪表
export function updateCopyroom(data) {
  return request({
    url: '/payfee/copyroom',
    method: 'put',
    data: data
  })
}

// 删除抄房间仪表
export function delCopyroom(copyId) {
  return request({
    url: '/payfee/copyroom/' + copyId,
    method: 'delete'
  })
}

// 导出抄房间仪表
export function exportCopyroom(query) {
  return request({
    url: '/payfee/copyroom/export',
    method: 'get',
    params: query
  })
}


// 获取房间仪表上一次读数
export function lastRoomReading(rometerId) {
  return request({
    url: '/payfee/copyroom/lastRoomReading/' + rometerId,
    method: 'get'
  })
}

//批量生成房间仪表费用
export function batchPayfee(data) {
  return request({
    url: '/payfee/copyroom/batchPayfee',
    method: 'post',
    data: data
  })
}


